package com.ruoyi.his.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import java.util.Date;

/**
 * 医疗机构信息对象 ods_hospital_data
 * 
 * @author Alan
 * @date 2024-03-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OdsHospitalData
{
    private static final long serialVersionUID = 1L;

    /** 主健id */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String hospitalId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String orgCode;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String name;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String shortName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String busAddr;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String applyEndDate;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String nextCheckData;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String creditCode;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String specialtiesCode;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long region;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String registerNumber;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    /** 白名单开关 默认是0（关）  1是开 */
    @Excel(name = "白名单开关 默认是0", readConverterExp = "关=")
    private Integer enabled;
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String password;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHospitalId(String hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public String getHospitalId() 
    {
        return hospitalId;
    }
    public void setOrgCode(String orgCode) 
    {
        this.orgCode = orgCode;
    }

    public String getOrgCode() 
    {
        return orgCode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setShortName(String shortName) 
    {
        this.shortName = shortName;
    }

    public String getShortName() 
    {
        return shortName;
    }
    public void setBusAddr(String busAddr) 
    {
        this.busAddr = busAddr;
    }

    public String getBusAddr() 
    {
        return busAddr;
    }
    public void setApplyEndDate(String applyEndDate) 
    {
        this.applyEndDate = applyEndDate;
    }

    public String getApplyEndDate() 
    {
        return applyEndDate;
    }
    public void setNextCheckData(String nextCheckData) 
    {
        this.nextCheckData = nextCheckData;
    }

    public String getNextCheckData() 
    {
        return nextCheckData;
    }
    public void setCreditCode(String creditCode) 
    {
        this.creditCode = creditCode;
    }

    public String getCreditCode() 
    {
        return creditCode;
    }
    public void setSpecialtiesCode(String specialtiesCode) 
    {
        this.specialtiesCode = specialtiesCode;
    }

    public String getSpecialtiesCode() 
    {
        return specialtiesCode;
    }
    public void setRegion(Long region) 
    {
        this.region = region;
    }

    public Long getRegion() 
    {
        return region;
    }
    public void setRegisterNumber(String registerNumber) 
    {
        this.registerNumber = registerNumber;
    }

    public String getRegisterNumber() 
    {
        return registerNumber;
    }
    public void setEnabled(Integer enabled) 
    {
        this.enabled = enabled;
    }

    public Integer getEnabled() 
    {
        return enabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hospitalId", getHospitalId())
            .append("orgCode", getOrgCode())
            .append("name", getName())
            .append("shortName", getShortName())
            .append("busAddr", getBusAddr())
            .append("applyEndDate", getApplyEndDate())
            .append("nextCheckData", getNextCheckData())
            .append("creditCode", getCreditCode())
            .append("specialtiesCode", getSpecialtiesCode())
            .append("region", getRegion())
            .append("registerNumber", getRegisterNumber())
            .append("enabled", getEnabled())
            .toString();
    }
}
